package com.dawn.usermanage.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;

import com.dawn.usermanage.bean.SinaInfoBean;

@Repository
public class SinaUserMDao {

	@Autowired
	private HibernateTemplate hibernateTemplate;

	public SinaInfoBean findSinaUser(String sinaId) {
		SinaInfoBean sinaInfo = (SinaInfoBean) hibernateTemplate.get(SinaInfoBean.class, sinaId);
		return sinaInfo;
	}

	public void addSinaUser(SinaInfoBean sinaInfoBean) {
		hibernateTemplate.save(sinaInfoBean);
	}

	public void updateSinaBasic(SinaInfoBean sinaInfoBean) {
	}

}
